package com.maserb.monitor.service.schoolConduct;

import com.maserb.monitor.entity.schoolConduct.StudentConductRecordEntity;
import com.maserb.monitor.repository.schoolConduct.StudentConductRecordRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface StudentConductRecordService extends JpaSpecificationService<StudentConductRecordRepository, StudentConductRecordRepository, StudentConductRecordEntity, String> {

    List<StudentConductRecordEntity> findByStudent(String studentId);

    Page<StudentConductRecordEntity> findAll(Pageable pageable , String studentId);

    Page<StudentConductRecordEntity> findAll(Pageable pageable,String userId,String name,String studentId,String clazzId,String itemId,String startTime,String endTime);

    void saveConduct(StudentConductRecordEntity record);

    void doReview(StudentConductRecordEntity record);

    void doNotReview(StudentConductRecordEntity record);
}